import zipfile

PACKAGE_FILENAME = 'google-calendar-gadget.gg'

FILES = [
  'addevent.js',
  'addevent.xml',
  'auth.js',
  'cache.js',
  'calendar.js',
  'calendarevent.js',
  'constants.js',
  'errorMessage.js',
  'eventdetails.js',
  'eventdetails.xml',
  'events.js',
  'gadget.gmanifest',
  'geocode.js',
  'icon_large.png',
  'icon_small.png',
  'json_sans_eval.js',
  'main.js',
  'main.xml',
  'online_checker.js',
  'options.js',
  'options.xml',
  'quickadd.js',
  'quickadd.xml',
  'ui_agenda.js',
  'ui_calendar.js',
  'ui_dayview.js',
  'ui_main.js',
  'ui_main_resize.js',
  'utils.js',
  'version_checker.js',
  'en/strings.xml',
  'images/action_default.png',
  'images/action_down.png',
  'images/action_hover.png',
  'images/agenda_fullday_next.png',
  'images/agenda_fullday_prev.png',
  'images/agenda_header.png',
  'images/agenda_nav_down.png',
  'images/agenda_nav_up.png',
  'images/base_bottom.png',
  'images/base_bottomleft.png',
  'images/base_bottomright.png',
  'images/base_left.png',
  'images/base_right.png',
  'images/base_top.png',
  'images/base_topleft.png',
  'images/base_topright.png',
  'images/blue_bottom_left.png',
  'images/blue_bottom_middle.png',
  'images/blue_bottom_right.png',
  'images/captcha_loading.jpg',
  'images/checkbox_checked.png',
  'images/checkbox_default.png',
  'images/checkbox_focus.png',
  'images/closeBtn.png',
  'images/dayview_bottom_bg.png',
  'images/dayview_bottom_left.png',
  'images/dayview_bottom_right.png',
  'images/dayview_header_left.png',
  'images/dayview_header_right.png',
  'images/dayview_nav_next.png',
  'images/dayview_nav_prev.png',
  'images/day_selected.png',
  'images/design_left.png',
  'images/design_right.png',
  'images/detailsview_bg.png',
  'images/detailsview_content.png',
  'images/details_corner_bl.png',
  'images/details_corner_br.png',
  'images/details_corner_tl.png',
  'images/details_corner_tr.png',
  'images/error_center.png',
  'images/error_left.png',
  'images/error_right.png',
  'images/event_add_bg.png',
  'images/footer_bg.png',
  'images/footer_cal_out.png',
  'images/footer_cal_over.png',
  'images/footer_left.png',
  'images/footer_right.png',
  'images/google_logo.png',
  'images/loginIcon.png',
  'images/month_nav_bg.png',
  'images/month_nav_next.png',
  'images/month_nav_next_hover.png',
  'images/month_nav_prev.png',
  'images/month_nav_prev_hover.png',
  'images/optionsMenuBG.jpg',
  'images/optionsMenuShadow.png',
  'images/quick_add_bg.png',
  'images/resize_indicator.png',
  'images/rsvp_maybe.png',
  'images/rsvp_no.png',
  'images/rsvp_yes.png',
  'images/scroll-bar.gif',
  'images/scroll-down-clicked.gif',
  'images/scroll-down-over.gif',
  'images/scroll-down.gif',
  'images/scroll-track-clicked.gif',
  'images/scroll-track.gif',
  'images/scroll-up-clicked.gif',
  'images/scroll-up-over.gif',
  'images/scroll-up.gif',
  'images/scroll.png',
  'images/weekday_bg.png',
  'images/weekday_left.png',
  'images/weekday_right.png',
]

package = zipfile.ZipFile(PACKAGE_FILENAME, 'w',
    compression=zipfile.ZIP_DEFLATED)
for file in FILES:
  print file
  package.write(file)
package.close()

print
print PACKAGE_FILENAME
